//
//  HMPhoneLoginViewModel.m
//  获得
//
//  Created by mac on 17/1/8.
//  Copyright © 2017年 mac.gu. All rights reserved.
//

#import "HMPhoneLoginViewModel.h"
#import "HMNetWorkTool.h"
@implementation HMPhoneLoginViewModel

#warning 登录

+ (void)postPhoneNumLogin:(NSString *)phoneNum andPassword:(NSString *)password andToken:(NSString *)token Finished:(void(^)(id responseObject))finishedBlock Failed:(void(^)(NSError* error))failedBlock{
    [[HMNetWorkTool sharedTool]requstLoginPhoneNum:phoneNum password:password andToken:token Finished:^(id responseObject) {
        
        finishedBlock(responseObject);
        
    } Failed:^(NSError *error) {
        failedBlock(error);
    }];
}

@end
